<?php include 'frame-top.php'; ?>

<div class="segm">
	<?php include 'pathbar.php';
	if (is_array($this->data)) {
		$title=$this->data['Title'];
		$pid=$this->data['PId'];
	}
	else {
		$title='';
		$pid=0;
	}
	pathbar(array('软件教研室'=>'/home',
				'教研室发表的论文'=>'/paper',
				$title=>'/member/paper_detail/PId/'.$pid)
		);
	?>
	
	<!-- paper detail -->
	<?php if (is_array($this->data)):
		$data=paper::pretreat($this->data); 
		$edit=$this->edit?'<input type="button" value="edit"
				onclick="edit_paper_item(this, '.$pid.');" />':'&nbsp;';
		$date=date('Y-m', $this->data['Date']);
	?>
	<?php if ($this->edit) : ?>
	<div class="edit_tip">操作选项：
		<input type="button" value="edit paper info"
			onclick="location.href='/paper/edit/PId/<?=$pid; ?>'" />
		<input type="button" value="del"
			onclick="del_paper(<?= $pid;?>)" /> 
	</div>
	<?php endif; ?>
	<table border="0" cellspacing="5" cellpadding="0"
			width="100%" id="paper_<?= $pid; ?>" class="paper_table">
	<tbody>
		<tr><td width="15%" valign="top"><b>论文题目:</b></td>
			<td class="content"><p><?= $data['Title']; ?></p></td>
		</tr>
		<tr><td valign="top"><b>作　　者:</b></td>
			<td class="content"><p><?= $data['Author']; ?></p></td>
		</tr>
		<tr><td valign="top"><b>发表刊物:</b></td>
			<td class="content"><p><?= $data['Journal']; ?></p></td>
		</tr>
		<tr><td valign="top"><b>发表日期:</b></td>
			<td class="content"><p><?= $data['Date']; ?></p>
			</td>
		</tr>
		<tr><td valign="top"><b>检　　索:</b></td>
			<td class="content"><p><?= $data['Search']; ?></p>
			</td>
		</tr>
		<tr><td valign="top"><b>关 键 词:</b></td>
			<td class="content"><p><?= $data['Keyword']; ?></p>
			</td>
		</tr>
		<tr><td valign="top"><b>基金项目:</b></td>
			<td class="content"><p><?= $data['Foundation']; ?></p>
			</td>
		</tr>
		<tr><td valign="top"><b>下载地址:</b></td>
			<td class="content" id="Download">
			<?php if (!empty($data['Download'])) : ?>
				<a href="/pub/paper/<?= $data['Download']; ?>"
					target="_blank">下载论文全文</a>
			<?php endif; ?>
			</td>
		</tr>
	</tbody>
	</table> <!-- end of paper detail -->
	<?php endif ?>

</div> <!-- end of segm -->



<?php include 'frame-bottom.php'; ?>
